package com.cmos.um.utils;

import com.cmos.um.beans.CtiMessage;
import java.util.List;

public class CtiAlgorithm {

    public static CtiMessage GetBastCti(List<CtiMessage> ctiMessage) {
        CtiMessage suit = null;
        for (CtiMessage cti : ctiMessage) {
            if (suit == null || cti.getTaskCount() < suit.getTaskCount()) {//取最大的坐席数
                suit = cti;
            }
        }
        return suit;
    }
}
